<<template>
  <el-select placeholder='请选择' v-model='form.channel_id'>
      <el-option
      v-for='item in channelsList'
      :key="item.id"
      :label='item.name'
      :value='item.id'></el-option>
  </el-select>
</template>
<script>
import { channels } from '@/api/index.js'
export default {
  name: 'HmSelect',
  props: ['form'],
  data () {
    return {
      channelsList: [],
      selectValue: ''
    }
  },
  async created (){
      const res = await channels ()
      this.channelsList = res.data.channels
  }
}
</script>
<style lang="less"></style>
